package com.zzptc.ygz;

import java.util.Arrays;
import java.util.List;

public class StringT {
    public static void main(String[] args) {
        String str = "www.zzptc.com";
        String[] split = str.split("\\.");
//        for (int i=0;i<split.length;i++) {
//            System.out.println(split[i]);
//        }
        for (String s:split) {
            System.out.println(s);
        }
        List<String> list = Arrays.asList("one", "two", "three");
        list.forEach(x -> System.out.println(x));
    }
}